<% lngStudentID = session("id")
strClassID = request("classid")
set AddObj = server.createobject("Add.Obj")
errAddStudent = AddObj.Add (lngStudentID,strClassID)
if errAddStudent = 1 then
response.write "An error occurred and the class could not be added. Be sure that you are using a valid student ID and that you are not already enrolled in the class."
response.End
end if
%>
Student <%=lngStudentID%> has been added to class <%=strClassID%>
Return to class registration page